home *** CD-ROM | disk | FTP | other *** search
- Path: hades.rz.uni-sb.de!news
- From: bof@math.uni-sb.de (Patrick Schaaf)
- Newsgroups: comp.programming,alt.msdos.programmer,comp.lang.c++
- Subject: Re: How to detect HD
- Date: 15 Jan 1996 19:21:40 GMT
- Organization: in progress...
- Message-ID: <4de9g4$sc6@hades.rz.uni-sb.de>
- References: <4d5s19$m7l@nosy.bart.nl>
- NNTP-Posting-Host: briggs.math.uni-sb.de
-
- painless@bart.nl (Steven van den Berg) writes:
-
- >I want to detect all the harddisks in a computer with C, C++ or ASM,
- >can somebody tell me how to do this.
-
- In C I would do something like this:
-
- int get_nr_hds(void)
- {
- int res = 0;
-
- printf("Hello User! Please open your computer and check the\n");
- printf("number of HDs you have installed. Type that number: ");
- fscanf(stdin, "%d", &res);
- return res;
- }
-
- bye :-)
- Patrick
-